FLOOR
The FLOOR function rounds a number down to the nearest integer multiple of specified significance.
Sample Usage​
FLOOR(23.25,0.1)
FLOOR(A2,1)
Syntax​
FLOOR(value, [factor])
value
- The value to round down to the nearest integer multiple offactor
.factor
- [OPTIONAL -1
by default] - The number to whose multiplesvalue
will be rounded.factor
may not be equal to0
.
Notes​
value
can be positive or negative, butfactor
must be positive.FLOOR
is most often used withfactor
set to a 'round' number such as0.1
or0.01
in order to round to a particular decimal place. However,factor
can, in fact, be any number of the same sign asvalue
, e.g.FLOOR(23.25,0.18)
which results in23.22
, which is 0.18 * 129. This can be used, for instance, to round down to a particular denomination of currency (e.g. 0.25 or 0.05 USD).
See Also​
CEILING
: The CEILING function rounds a number up to the nearest integer multiple of specified significance.
TRUNC
: Truncates a number to a certain number of significant digits by omitting less significant digits.
ROUNDUP
: Rounds a number to a certain number of decimal places, always rounding up to the next valid increment.
ROUNDDOWN
: The ROUNDDOWN function rounds a number to a certain number of decimal places, always rounding down to the next valid increment.
ROUND
: The ROUND function rounds a number to a certain number of decimal places according to standard rules.
MROUND
: Rounds one number to the nearest integer multiple of another.
INT
: Rounds a number down to the nearest integer that is less than or equal to it.